from django.db import models


# 组织部门表
class Faculty(models.Model):
    faculty_code = models.CharField(verbose_name='单位号', max_length=30)
    faculty_title = models.CharField(verbose_name='单位名称', max_length=50)
    parent_code = models.CharField(verbose_name='上级单位号', null=True, max_length=30)

    class Meta:
        db_table = 'faculty'
        verbose_name_plural = verbose_name = '组织部门表'
